package com.koron.order.linepatrol.base.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.linepatrol.base.bean.po.PatrolPointPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 巡视工单-巡视点从表(PatrolPoint)表服务接口
 *
 * @author zhouj
 * @since 2021-10-26 15:27:35
 */
public interface PatrolPointService {

    int insertOrUpdate(SessionFactory factory, PatrolPointPo patrolPoint);

    int insertOrUpdateBatch(SessionFactory factory, List<PatrolPointPo> patrolPointList);

    int insert(SessionFactory factory, PatrolPointPo patrolPoint);

    int insertBatch(SessionFactory factory, List<PatrolPointPo> patrolPointList);

    int update(SessionFactory factory, PatrolPointPo patrolPoint);

    int updateBatchStatus(SessionFactory factory, List<String> ids, String status, String noPatrolStatus);

    int deleteById(SessionFactory factory, String id);

    PatrolPointPo queryById(SessionFactory factory, String id);

    List<PatrolPointPo> queryByIds(SessionFactory factory, List<String> ids);

    PageInfo queryPageList(SessionFactory factory, PatrolPointPo patrolPoint, PageQuery pageQuery);

    List<PatrolPointPo> queryList(SessionFactory factory, PatrolPointPo patrolPoint);

}
